<?php
/**
 * Created by PhpStorm.
 * User: wangwenfan
 * Date: 2018/7/30
 * Time: 15:03.
 */

namespace App\Scopes;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Scope;

class PlayerLoginScope implements Scope
{
    public function apply(Builder $builder, Model $model)
    {
        return $builder->where('platformid', '!=', 99);
    }
}
